//
//  GFAlertView.h
//  GoFunLive
//
//  Created by r on 2017/11/2.
//  Copyright © 2017年 快趣住. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, TypeOfIcon) {
    TypeOfIconWarn,//!<⚠️icon
    TypeOfIconTick,//!<✅icon
    TypeOfIconBlueDoor,
};

typedef NS_ENUM(NSInteger, TypeOfSize) {
    TypeSizeNormal,
    TypeSizeBig,
};

@interface GFAlertView : UIView

@property (nonatomic, assign) TypeOfSize typeOfSize;
@property (nonatomic, strong) UILabel *titleLab;
@property (nonatomic, strong) UILabel *detailLab;

//// 只有alertIcon、一种title的alertView
//+ (instancetype)alertViewWithIconType:(TypeOfIcon)iconType msg:(NSString *)msg;
//
//// 有alertIcon、一种title、底部两个按钮（左侧为取消按钮、右侧需设置title）的alertView
//+ (instancetype)alertViewWithIconType:(TypeOfIcon)iconType msg:(NSString *)msg rightBtnBlock:(void(^)(UIButton *rightBtn))rightBtnBlock;
//
//// 有alertIcon、一种title、底部一个“知道了”按钮的alertView
//+ (instancetype)alertViewWithIconType:(TypeOfIcon)iconType msg:(NSString *)msg knowBtnBlock:(void(^)(UIButton *knowBtn))knowBtnBlock;
//
//// 有alertIcon、两种title、底部一个“知道了”按钮的alertView
//+ (instancetype)alertViewWithIconType:(TypeOfIcon)iconType msg:(NSString *)msg detailMsg:(NSString *)detailMsg knowBtnBlock:(void(^)(UIButton *knowBtn))knowBtnBlock;
//
//// 有alertIcon、一种title、底部两个按钮（左侧需设置title、右侧需设置title）的alertView
//+ (instancetype)alertViewWithIconType:(TypeOfIcon)iconType
//                                  msg:(NSString *)msg
//                         leftBtnBlock:(void(^)(UIButton *leftBtn))leftBtnBlock
//                        rightBtnBlock:(void(^)(UIButton *rightBtn))rightBtnBlock;
//
//// 有alertIcon、两种title、底部两个按钮的alertView
//+ (instancetype)alertViewWithIconType:(TypeOfIcon)iconType
//                                  msg:(NSString *)msg
//                            detailMsg:(NSString *)detailMsg
//                         letfBtnBlock:(void(^)(UIButton *leftBtn))leftBtnBlock
//                        rightBtnBlock:(void(^)(UIButton *rightBtn))rightBtnBlock;


+ (instancetype)alertViewWithMsg:(NSString *)msg detailMsg:(NSString *)detailMsg knowBtnBlock:(void(^)(UIButton *knowBtn))knowBtnBlock;
+ (instancetype)alertViewWithMsg:(NSString *)msg detailMsg:(NSString *)detailMsg leftBtnBlock:(void(^)(UIButton *leftBtn))leftBtnBlock
                        rightBtnBlock:(void(^)(UIButton *rightBtn))rightBtnBlock;


- (void)showWithAnimation;
- (void)showWithAnimationOnView:(UIView *)view;
-(void)hiddenClose;

@end
